﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CarEdit.ascx.cs" Inherits="CarRental.Controls.CarEdit" %>

    <asp:ScriptManager ID="CarEditScriptManager" runat="server" />
    

    <div id="InfoMessage" runat="server" visible="false" class="info-message"></div>

    <fieldset class="form-fieldset">
        <asp:HiddenField ID="hidId" runat="server" ClientIDMode="Static" />
        <p>
            <span class="label-placeholder"><asp:Label AssociatedControlID="txtRegistrationNumber" Text="Numer rejestracyjny" runat="server"></asp:Label></span>
            <asp:TextBox ID="txtRegistrationNumber" runat="server" />
        </p>
        <asp:UpdatePanel ID="CarEditUpdatePanel" runat="server">
            <ContentTemplate>
                <p>
                    <span class="label-placeholder"><asp:Label runat="server" AssociatedControlID="ddProducer" Text="Marka"></asp:Label></span>
                    <asp:DropDownList ID="ddProducer" OnSelectedIndexChanged="ProducerChange" AutoPostBack="true" runat="server"></asp:DropDownList>
                </p>
                <p>
                    <span class="label-placeholder"><asp:Label ID="Label1" runat="server" AssociatedControlID="ddModel" Text="Model"></asp:Label></span>
            
                            <asp:DropDownList ID="ddModel" runat="server"></asp:DropDownList>
            
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>
        <p>
            <span class="label-placeholder"><asp:Label ID="Label2" runat="server" AssociatedControlID="txtProductionYear" Text="Data produkcji"></asp:Label></span>
            <asp:TextBox ID="txtProductionYear" runat="server"></asp:TextBox>
        </p>
        <p>
            <span class="label-placeholder"><asp:Label ID="Label3" runat="server" AssociatedControlID="chkIsActive" Text="Aktywny?"></asp:Label></span>
            <asp:CheckBox ID="chkIsActive" runat="server" />
        </p>

        <asp:Button Text="Zapisz" runat="server" OnClick="SaveForm" />
        <asp:Button Text="Anuluj" runat="server" OnClick="CancelForm" />
    </fieldset>

